package com.briup.bookstore.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.PastOrPresent;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 订单支付成功DTO实体
 */
@Data
public class OrderPaySuccessDTO implements Serializable {
    @NotBlank(message = "订单ID不能为空")
    private String orderId;
    @NotBlank(message = "支付方式不能为空")
    private String payWay;
    @PastOrPresent(message = "支付时间不能晚于当前时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime payDate;
}
